<?php

/**
 * Yii view editor
 *
 * @author <KTD SOFT>
 * @since Jan 17, 2013 - 1:33:46 PM
 */
$this->widget('ext.ckeditor.CKEditorWidget', array(
    "model"        => Admin::model(), # Data-Model
    "attribute"    => 'content', # Attribute in the Data-Model
    "defaultValue" => "Test Text", # Optional
    # Additional Parameter (Check http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html)
    "config"       => array(
        "height"  => "400px",
        "width"   => "100%",
        "toolbar" => "Basic",
    ),
    #Optional address settings if you did not copy ckeditor on application root
    "ckEditor"     => Yii::app()->basePath . "/../tools/ckeditor/ckeditor.php",
    # Path to ckeditor.php
    "ckBasePath"   => Yii::app()->baseUrl . "/tools/ckeditor/",
        # Realtive Path to the Editor (from Web-Root)
));
?>
